package edu.ccut.saturn.studio.dialog.attributevalueassignmentdialog;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;

import edu.ccut.saturn.studio.logic.model.saturn.SaturnDbDataElement;

public class DBDataTableViewerLableProvider implements ITableLabelProvider {

	public Image getColumnImage(Object element, int columnIndex) {
		return null;
	}

	public String getColumnText(Object element, int columnIndex) {
		SaturnDbDataElement dbDataElement = (SaturnDbDataElement)element; 
		if (columnIndex == 0) {
			return dbDataElement.getName();
		} if (columnIndex == 1) {
			return dbDataElement.getNamevalue();
		}
		
		return ""; 
	}

	public void addListener(ILabelProviderListener listener) {		
	}

	public void dispose() {
	}

	public boolean isLabelProperty(Object element, String property) {
		return false;
	}

	public void removeListener(ILabelProviderListener listener) {
	}
}
